import http from '@/utils/http'

export const queryDepartments = (data) => {
  return http.post('/department/queryDepartment', data)
}

export const addDepartment = (data) => {
  return http.post('/department/addDepartment', data)
}

export const deleteDepartment = (data) => {
  return http.post('/department/deleteDepartment', data)
}

export const updateDepartment = (data) => {
  return http.post('/department/updateDepartment', data)
}

// 部门培训
export const queryDepartmentTraining = (data) => {
  return http.post('/department/queryDepartmentTraining', data)
}

export const addDepartmentTraining = (data) => {
  return http.post('/department/addDepartmentTraining', data)
}

export const deleteDepartmentTraining = (data) => {
  return http.post('/department/deleteDepartmentTraining', data)
}

export const updateDepartmentTraining = (data) => {
  return http.post('/department/updateDepartmentTraining', data)
}